[gd_scene load_steps=6 format=3 uid="uid://dhepe4q4yahin"]

[ext_resource type="Script" path="res://src/entities/Collectable.gd" id="1_7tmk4"]
[ext_resource type="Texture2D" uid="uid://qv6t21sfbns5" path="res://assets/star.png" id="1_8453o"]

[sub_resource type="CircleShape2D" id="CircleShape2D_pvhyb"]
radius = 13.0384

[sub_resource type="Animation" id="Animation_7208f"]
resource_name = "time_anim"
length = 25.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Center:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 4, 8, 12, 16, 21, 25),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [0.0, 6.28319, 12.5664, 18.8496, 25.1327, 31.4159, 34.5575]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Center:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8), Vector2(1, 1), Vector2(0.8, 0.8)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Center/Star:self_modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.6, 18, 19, 20, 21, 22, 22.5, 23, 23.5, 24, 24.5, 25),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0.211765), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 0.588235, 0.498039, 0.780392), Color(1, 1, 1, 1), Color(1, 0.588235, 0.498039, 0.780392), Color(1, 1, 1, 1), Color(1, 0.396078, 0.356863, 0.709804), Color(1, 1, 1, 1), Color(1, 0.105882, 0.0235294, 0.501961), Color(1, 1, 1, 1), Color(1, 0.105882, 0.0235294, 0.501961), Color(1, 0.0588235, 0, 0)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_jncnp"]
_data = {
"time_anim": SubResource("Animation_7208f")
}

[node name="Collectable" type="Area2D"]
collision_layer = 0
collision_mask = 2
script = ExtResource("1_7tmk4")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_pvhyb")

[node name="Timer" type="Timer" parent="."]
one_shot = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "time_anim"
libraries = {
"": SubResource("AnimationLibrary_jncnp")
}

[node name="Center" type="Node2D" parent="."]
scale = Vector2(0.8, 0.8)

[node name="Star" type="Sprite2D" parent="Center"]
self_modulate = Color(1, 1, 1, 0.211765)
z_index = -2
position = Vector2(-2.18557e-07, -1.25)
texture = ExtResource("1_8453o")

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
